package _17_函数式编程.Lambda._5_定义接口对选择建模;

import _17_函数式编程.Lambda.Apple;

public class AppleHeavyWeightPredicate implements ApplePredicate{

    @Override
    public boolean test(Apple apple){
        return apple.getWeight() >= 150;
    }
}
